import turtle
t = turtle.Pen()
turtle.bgcolor("purple")
colors = ["red", "yellow", "blue", "orange", "green", "pink"]
for x in range(360):
    t.pencolor(colors[x % len(colors)])
    t.forward(x * 3/len(colors) + x)
    t.left(360 / len(colors) + 1)
    t.width(x * len(colors)/200)
turtle.exitonclick()#点击退出